package com.bs.biaoge.util.excel;

import com.bs.biaoge.util.ExcelUtil;
import org.apache.poi.ss.formula.functions.T;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.util.Arrays;
import java.util.List;
import java.util.Map;

/**
 * @author 小姚
 * @pakeageName:com.bs.biaoge.util.excel
 * @ClassName:ExcelModelPropertyValue
 * @Descirption:
 * @data 2023/3/4 23:14
 */
public class ExcelModelPropertyValue {

   public boolean getExcelModel(Object[] titles, Map<String,List<Object[]>> map) throws FileNotFoundException {
       //获取map

       boolean flag=false;
       for (Map.Entry<String, List<Object[]>> stringListEntry : map.entrySet()) {
           List<Object[]> value = stringListEntry.getValue();
           Object[] objects = value.get(0);
           if(Arrays.equals(objects,titles)){
               return true;
           }
       }
       return false;

   }
}
